package com.bxd.baodan.item;

import java.util.List;

/**
 * Created by lizhichao on 17/9/6.
 */

public class FamilyDesignBean {


    /**
     * result : true
     * resultNum : 200
     * responseTime : 1504681103
     * resultMessage : SUCCESS
     * resultElapse : 19
     * response : {"personal_report":[{"title":"您的基本信息","form":["gender","age"]},{"title":"您的职业收入","form":["career","personal_annual_income"]},{"title":"您的生活状态","form":["life_tag"]},{"title":"您的保障情况","form":["have_social_insurance","have_business_insurance","business_insurance_life","business_insurance_serious","business_insurance_accident","business_insurance_medical","business_insurance_pension","business_insurance_education"]},{"title":"您的家庭成员","form":["family_member"]},{"title":"您的家庭收支","form":["family_annual_income","family_month_spending","family_month_alimony","family_loan"]},{"title":"您的教育计划","form":["education_plan"]}],"condition":{"gender":{"type":"radio","value":[{"id":"male","name":"男"},{"id":"female","name":"女"}],"name":"您的性别","content":"男女分工和所承担责任不同，风险及压力有区别"},"age":{"type":"select","value":{"min":0,"max":120},"name":"您的年龄","content":"不同年龄面对的风险不同，投保策略要做区别"},"career":{"type":"select","value":[{"id":"1","name":"室内轻体力（如行政,管理人员）"},{"id":"2","name":"室内重体力（如程序员）"},{"id":"3","name":"户外简单工作（如，司机，导游等）"},{"id":"4","name":"户外复杂工作（如，工程师，建筑工人等）"}],"name":"您的职业","content":"不同职业风险不同"},"personal_annual_income":{"type":"text","name":"您的年收入（单位万元）","content":"根据收入进行保费支出及保障类型规划"},"life_tag":{"type":"checkbox","value":[{"id":"1","name":"经常出差"},{"id":"2","name":"过度加班"},{"id":"3","name":"久坐不动"},{"id":"4","name":"经常抽烟"}],"name":"您的生活标签（可多选）","content":"生活标签会影响您的风险指数"},"have_social_insurance":{"type":"radio","value":[{"id":"have","name":"有社保"},{"id":"no","name":"无社保"}],"name":"您的社会保险","content":""},"have_business_insurance":{"type":"radio","value":[{"id":"have","name":"有"},{"id":"no","name":"无"}],"name":"您的其他保险","content":"通过已有的保障来计算保障缺口"},"business_insurance_life":{"type":"text","name":"人寿保险保额","content":""},"business_insurance_serious":{"type":"text","name":"重疾保险保额","content":""},"business_insurance_accident":{"type":"text","name":"意外保险保额","content":""},"business_insurance_medical":{"type":"text","name":"医疗保险保额","content":""},"business_insurance_pension":{"type":"text","name":"养老保险保额","content":""},"business_insurance_education":{"type":"text","name":"教育金","content":""},"family_member":{"type":"checkbox","value":[{"id":"spouse","name":"配偶"},{"id":"child","name":"子女"},{"id":"father","name":"父亲"},{"id":"mather","name":"母亲"},{"id":"my","name":"本人"}],"name":"您的家庭成员","content":"投保是家庭行为，规划保险须将所有家庭成员视为一个整体，并考虑成员在家中扮演的角色"},"family_annual_income":{"type":"text","name":"家庭年收入","content":""},"family_month_spending":{"type":"text","name":"家庭月开销","content":""},"family_month_alimony":{"type":"text","name":"赡养金","content":""},"family_loan":{"type":"text","name":"待偿还贷款","content":""},"education_plan":{"type":"radio","value":[{"id":"domestic","name":"国内"},{"id":"foreign","name":"国外"},{"id":"no","name":"暂无计划"}],"name":"您的教育计划","content":"未成年的保障需涵盖医疗，意外，教育等多方面"}}}
     */

    public boolean result;
    public int resultNum;
    public String responseTime;
    public String resultMessage;
    public int resultElapse;
    public ResponseBean response;

    public static class ResponseBean {
        /**
         * personal_report : [{"title":"您的基本信息","form":["gender","age"]},{"title":"您的职业收入","form":["career","personal_annual_income"]},{"title":"您的生活状态","form":["life_tag"]},{"title":"您的保障情况","form":["have_social_insurance","have_business_insurance","business_insurance_life","business_insurance_serious","business_insurance_accident","business_insurance_medical","business_insurance_pension","business_insurance_education"]},{"title":"您的家庭成员","form":["family_member"]},{"title":"您的家庭收支","form":["family_annual_income","family_month_spending","family_month_alimony","family_loan"]},{"title":"您的教育计划","form":["education_plan"]}]
         * condition : {"gender":{"type":"radio","value":[{"id":"male","name":"男"},{"id":"female","name":"女"}],"name":"您的性别","content":"男女分工和所承担责任不同，风险及压力有区别"},"age":{"type":"select","value":{"min":0,"max":120},"name":"您的年龄","content":"不同年龄面对的风险不同，投保策略要做区别"},"career":{"type":"select","value":[{"id":"1","name":"室内轻体力（如行政,管理人员）"},{"id":"2","name":"室内重体力（如程序员）"},{"id":"3","name":"户外简单工作（如，司机，导游等）"},{"id":"4","name":"户外复杂工作（如，工程师，建筑工人等）"}],"name":"您的职业","content":"不同职业风险不同"},"personal_annual_income":{"type":"text","name":"您的年收入（单位万元）","content":"根据收入进行保费支出及保障类型规划"},"life_tag":{"type":"checkbox","value":[{"id":"1","name":"经常出差"},{"id":"2","name":"过度加班"},{"id":"3","name":"久坐不动"},{"id":"4","name":"经常抽烟"}],"name":"您的生活标签（可多选）","content":"生活标签会影响您的风险指数"},"have_social_insurance":{"type":"radio","value":[{"id":"have","name":"有社保"},{"id":"no","name":"无社保"}],"name":"您的社会保险","content":""},"have_business_insurance":{"type":"radio","value":[{"id":"have","name":"有"},{"id":"no","name":"无"}],"name":"您的其他保险","content":"通过已有的保障来计算保障缺口"},"business_insurance_life":{"type":"text","name":"人寿保险保额","content":""},"business_insurance_serious":{"type":"text","name":"重疾保险保额","content":""},"business_insurance_accident":{"type":"text","name":"意外保险保额","content":""},"business_insurance_medical":{"type":"text","name":"医疗保险保额","content":""},"business_insurance_pension":{"type":"text","name":"养老保险保额","content":""},"business_insurance_education":{"type":"text","name":"教育金","content":""},"family_member":{"type":"checkbox","value":[{"id":"spouse","name":"配偶"},{"id":"child","name":"子女"},{"id":"father","name":"父亲"},{"id":"mather","name":"母亲"},{"id":"my","name":"本人"}],"name":"您的家庭成员","content":"投保是家庭行为，规划保险须将所有家庭成员视为一个整体，并考虑成员在家中扮演的角色"},"family_annual_income":{"type":"text","name":"家庭年收入","content":""},"family_month_spending":{"type":"text","name":"家庭月开销","content":""},"family_month_alimony":{"type":"text","name":"赡养金","content":""},"family_loan":{"type":"text","name":"待偿还贷款","content":""},"education_plan":{"type":"radio","value":[{"id":"domestic","name":"国内"},{"id":"foreign","name":"国外"},{"id":"no","name":"暂无计划"}],"name":"您的教育计划","content":"未成年的保障需涵盖医疗，意外，教育等多方面"}}
         */

        public ConditionBean condition;
        public List<PersonalReportBean> personal_report;

        public static class ConditionBean {
            /**
             * gender : {"type":"radio","value":[{"id":"male","name":"男"},{"id":"female","name":"女"}],"name":"您的性别","content":"男女分工和所承担责任不同，风险及压力有区别"}
             * age : {"type":"select","value":{"min":0,"max":120},"name":"您的年龄","content":"不同年龄面对的风险不同，投保策略要做区别"}
             * career : {"type":"select","value":[{"id":"1","name":"室内轻体力（如行政,管理人员）"},{"id":"2","name":"室内重体力（如程序员）"},{"id":"3","name":"户外简单工作（如，司机，导游等）"},{"id":"4","name":"户外复杂工作（如，工程师，建筑工人等）"}],"name":"您的职业","content":"不同职业风险不同"}
             * personal_annual_income : {"type":"text","name":"您的年收入（单位万元）","content":"根据收入进行保费支出及保障类型规划"}
             * life_tag : {"type":"checkbox","value":[{"id":"1","name":"经常出差"},{"id":"2","name":"过度加班"},{"id":"3","name":"久坐不动"},{"id":"4","name":"经常抽烟"}],"name":"您的生活标签（可多选）","content":"生活标签会影响您的风险指数"}
             * have_social_insurance : {"type":"radio","value":[{"id":"have","name":"有社保"},{"id":"no","name":"无社保"}],"name":"您的社会保险","content":""}
             * have_business_insurance : {"type":"radio","value":[{"id":"have","name":"有"},{"id":"no","name":"无"}],"name":"您的其他保险","content":"通过已有的保障来计算保障缺口"}
             * business_insurance_life : {"type":"text","name":"人寿保险保额","content":""}
             * business_insurance_serious : {"type":"text","name":"重疾保险保额","content":""}
             * business_insurance_accident : {"type":"text","name":"意外保险保额","content":""}
             * business_insurance_medical : {"type":"text","name":"医疗保险保额","content":""}
             * business_insurance_pension : {"type":"text","name":"养老保险保额","content":""}
             * business_insurance_education : {"type":"text","name":"教育金","content":""}
             * family_member : {"type":"checkbox","value":[{"id":"spouse","name":"配偶"},{"id":"child","name":"子女"},{"id":"father","name":"父亲"},{"id":"mather","name":"母亲"},{"id":"my","name":"本人"}],"name":"您的家庭成员","content":"投保是家庭行为，规划保险须将所有家庭成员视为一个整体，并考虑成员在家中扮演的角色"}
             * family_annual_income : {"type":"text","name":"家庭年收入","content":""}
             * family_month_spending : {"type":"text","name":"家庭月开销","content":""}
             * family_month_alimony : {"type":"text","name":"赡养金","content":""}
             * family_loan : {"type":"text","name":"待偿还贷款","content":""}
             * education_plan : {"type":"radio","value":[{"id":"domestic","name":"国内"},{"id":"foreign","name":"国外"},{"id":"no","name":"暂无计划"}],"name":"您的教育计划","content":"未成年的保障需涵盖医疗，意外，教育等多方面"}
             */

            public GenderBean gender;
            public AgeBean age;
            public CareerBean career;
            public AgeBean personal_annual_income;
            public LifeTagBean life_tag;
            public HaveSocialInsuranceBean have_social_insurance;
            public HaveBusinessInsuranceBean have_business_insurance;
            public HaveSocialInsuranceBean business_insurance_life;
            public HaveSocialInsuranceBean business_insurance_serious;
            public HaveSocialInsuranceBean business_insurance_accident;
            public HaveSocialInsuranceBean business_insurance_medical;
            public HaveSocialInsuranceBean business_insurance_pension;
            public HaveSocialInsuranceBean business_insurance_education;
            public FamilyMemberBean family_member;
            public HaveSocialInsuranceBean family_annual_income;
            public HaveSocialInsuranceBean family_month_spending;
            public HaveSocialInsuranceBean family_month_alimony;
            public HaveSocialInsuranceBean family_loan;
            public EducationPlanBean education_plan;

            public static class GenderBean {
                /**
                 * type : radio
                 * value : [{"id":"male","name":"男"},{"id":"female","name":"女"}]
                 * name : 您的性别
                 * content : 男女分工和所承担责任不同，风险及压力有区别
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;


            }

            public static class AgeBean {
                /**
                 * type : select
                 * value : {"min":0,"max":120}
                 * name : 您的年龄
                 * content : 不同年龄面对的风险不同，投保策略要做区别
                 */

                public String type;
                public ValueBeanX value;
                public String name;
                public String content;

                public static class ValueBeanX {
                    /**
                     * min : 0
                     * max : 120
                     */

                    public int min;
                    public int max;
                }
            }

            public static class CareerBean {
                /**
                 * type : select
                 * value : [{"id":"1","name":"室内轻体力（如行政,管理人员）"},{"id":"2","name":"室内重体力（如程序员）"},{"id":"3","name":"户外简单工作（如，司机，导游等）"},{"id":"4","name":"户外复杂工作（如，工程师，建筑工人等）"}]
                 * name : 您的职业
                 * content : 不同职业风险不同
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;
            }

            public static class LifeTagBean {
                /**
                 * type : checkbox
                 * value : [{"id":"1","name":"经常出差"},{"id":"2","name":"过度加班"},{"id":"3","name":"久坐不动"},{"id":"4","name":"经常抽烟"}]
                 * name : 您的生活标签（可多选）
                 * content : 生活标签会影响您的风险指数
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;
            }

            public static class HaveSocialInsuranceBean {
                /**
                 * type : radio
                 * value : [{"id":"have","name":"有社保"},{"id":"no","name":"无社保"}]
                 * name : 您的社会保险
                 * content :
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;
            }

            public static class HaveBusinessInsuranceBean {
                /**
                 * type : radio
                 * value : [{"id":"have","name":"有"},{"id":"no","name":"无"}]
                 * name : 您的其他保险
                 * content : 通过已有的保障来计算保障缺口
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;
            }

            public static class FamilyMemberBean {
                /**
                 * type : checkbox
                 * value : [{"id":"spouse","name":"配偶"},{"id":"child","name":"子女"},{"id":"father","name":"父亲"},{"id":"mather","name":"母亲"},{"id":"my","name":"本人"}]
                 * name : 您的家庭成员
                 * content : 投保是家庭行为，规划保险须将所有家庭成员视为一个整体，并考虑成员在家中扮演的角色
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;
            }

            public static class EducationPlanBean {
                /**
                 * type : radio
                 * value : [{"id":"domestic","name":"国内"},{"id":"foreign","name":"国外"},{"id":"no","name":"暂无计划"}]
                 * name : 您的教育计划
                 * content : 未成年的保障需涵盖医疗，意外，教育等多方面
                 */

                public String type;
                public String name;
                public String content;
                public List<ValueBean> value;
            }
        }

        public static class PersonalReportBean {
            /**
             * title : 您的基本信息
             * form : ["gender","age"]
             */

            public String title;
            public List<String> form;
        }
    }

    public static class ValueBean {
        /**
         * id : male
         * name : 男
         */

        public String id;
        public String name;
    }
}
